package org.apache.http.entity.mime;

public class MinimalField
{
  private final String name;
  private final String value;

  MinimalField(String name, String value)
  {
    this.name = name;
    this.value = value;
  }

  public String getName() {
    return this.name;
  }

  public String getBody() {
    return this.value;
  }

  public String toString()
  {
    StringBuilder buffer = new StringBuilder();
    buffer.append(this.name);
    buffer.append(": ");
    buffer.append(this.value);
    return buffer.toString();
  }
}